package com.sxbbc.common.core.entity.jz;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 商家运费配置表，金额，数量/重量免邮可同时存在
 * </p>
 *
 * @author leehao
 * @since 2019-05-31
 */
public class BExpConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 店铺id
     */
    private Integer bid;

    /**
     * 标题
     */
    private String name;

    /**
     * 满额免邮
     */
    private BigDecimal money;

    /**
     * 满重量/数量 免邮按照商品属性来
     */
    private BigDecimal vals;

    /**
     * 0无效 1有效
     */
    private Integer status;

    private Date createTime;

    /**
     * 计价方式 1按数量 2按重量
     */
    private Integer valuationType;

    /**
     * 是否是养鸡订单默认运费模板 0 否 1 是
     */
    private Integer isFarm;

    /**
     * 运费详情
     */

    @TableField(exist = false)
    private List<BExpDetail> expDetailList;

    public Integer getIsFarm() {
        return isFarm;
    }

    public void setIsFarm(Integer isFarm) {
        this.isFarm = isFarm;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }
    public BigDecimal getVals() {
        return vals;
    }

    public void setVals(BigDecimal vals) {
        this.vals = vals;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public List<BExpDetail> getExpDetailList() {
        return expDetailList;
    }

    public void setExpDetailList(List<BExpDetail> expDetailList) {
        this.expDetailList = expDetailList;
    }

    public Integer getValuationType() {
        return valuationType;
    }

    public void setValuationType(Integer valuationType) {
        this.valuationType = valuationType;
    }

    @Override
    public String toString() {
        return "BExpConfig{" +
        "id=" + id +
        ", bid=" + bid +
        ", name=" + name +
        ", money=" + money +
        ", vals=" + vals +
        ", status=" + status +
        ", createTime=" + createTime +
        "}";
    }
}
